<%@page contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<jsp:include page="header.jsp" />
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page session="false"%>

<body>
    <jsp:include page="top.jsp" />
    <jsp:include page="sitebar.jsp" />
    
<h1>List of Quotes</h1>
<c:forEach items="${people}" var="v_person">
    <b>Quote:</b>	${v_person.quote} --- <b>Category:</b> ${v_person.category} --- <b>Vote:</b> ${v_person.vote}
	<br />
</c:forEach>
        
        <br>
        <form:form commandName="person" style="padding:8px">
        Category<br/>
        <form:select path="category">
            <form:option value="Fun" label="Fun" />
            <form:option value="Popular" label="Popular" />
            <form:option  value="Other" label="Other" />
        </form:select>
        <br/>

        <input type="submit" value="Sort"/>
    </form:form>
        <br>
<a href="edit"> Add Quote</a>
</body>
</html>
